"""
2 写一个程序，从input.txt中读取之前输入的数据，存入列表中，再加上行号打印显示；格式如下
1.#第一行： xxxx
2.#第二行： xxxx
"""
with open('input.txt', mode='r', encoding='utf-8') as f:
    data = f.read().strip().split('\n')

# print(data)
line = 1
dic = {1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七",8:"八",9:"九",10:"十"}
for i in data:
    if line <= 10:
        print(f'{line}.#第{dic[line]}行：{i}')
        line += 1
    else:
        tens_digit = int(line/10)
        single_digit = line % 10
        if single_digit == 0:
            new_line = dic[tens_digit] + "十"
        else:
            new_line = dic[tens_digit] + "十" + dic[single_digit]
        print(f'{line}.#第{new_line}行：{i}')
        line += 1